
/*
 * Copyright (C) 2008-2009 Archie L. Cobbs. All rights reserved.
 *
 * $Id$
 */

package org.dellroad.sidekar.query;

import java.util.Iterator;

import org.dellroad.sidekar.util.Closeable;

public interface QueryIterator<E> extends Query, Iterator<E>, Closeable {

    /**
     * Close this instance.
     *
     * <p>
     * This method may be invoked multiple times; only the first invocation has any effect.
     * </p>
     *
     * <p>
     * Once this instance is closed it become unusable.
     * </p>
     */
    @Override
    void close();
}

